package com.it985.springcloud.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.it985.springcloud.entities.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * TODO:
 *
 * @Author yushu
 * @Date 2022/4/22 15:41
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {
    /**
     * 创建订单
     */
    void create(Order order);

    /**
     * 修改订单金额
     */
    void update(@Param("userId") Long userId, @Param("status") Integer status);
}
